package com.example.consumerone.services;

        import com.example.consumerone.hystrix.TestServiceHystrix;
        import org.springframework.cloud.openfeign.FeignClient;
        import org.springframework.stereotype.Service;
        import org.springframework.web.bind.annotation.RequestMapping;

        import java.util.Map;

@Service
@FeignClient(value = "provider",fallback = TestServiceHystrix.class)
public interface TestService {
    @RequestMapping(value = "/test")
    public String say();

    @RequestMapping(value = "/testGet")
    public String testGet();

    @RequestMapping(value = "/userAttention/text")
    public Map text();
}
